﻿<%@ Page Title="" Language="C#" 
    MasterPageFile="/Medianamik/MasterPages/MedianamikModalWindow.Master" 
    AutoEventWireup="true" CodeBehind="PurgeLogsWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.PurgeLogsWindow" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="HeaderContentHolder" runat="server">
    <telerik:RadScriptBlock runat="server" ID="scriptBlock">
	    <script type="text/javascript">
            //<![CDATA[
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }

            function Cancel_Clicked()
            {
                var oWindow = GetRadWindow();
                oWindow.argument = null;
                oWindow.Close();
            }

            function closeWindow()
            {
                var arg = new Object();
                arg.value = 'a'; // pour s'assurer que la valeur de retour ait une valeur
                var oWindow = GetRadWindow();
                oWindow.Close(arg);
            }
            function confirmClose()
            {
                return confirm('<%=Resources("Medianamik_ConfigurationManagement", "PurgeLogsConfirm") %>');
            }
            //]]>            
	    </script>
	</telerik:RadScriptBlock>
	<style type="text/css">
	    #ModalBody
	    {
	        margin-right:12px;
	    }
	</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="MedianamikScriptManager" EnableHistory="true" EnablePageMethods="true" runat="server"  EnablePartialRendering="true" ScriptMode="Release" />
    <fieldset>
        <div class="Titre12pxBordure" style="padding-right:10px;">
            <asp:Label runat="server" Text="<%$ Resources : Medianamik_ConfigurationManagement, PurgeLogs %>"></asp:Label>
        </div>
        <asp:Label AssociatedControlID="ddlLogType" runat="server" Text="<%$ Resources : Medianamik_ConfigurationManagement, LogType %>" />
        <asp:DropDownList ID="ddlLogType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RefreshStatusLabel"></asp:DropDownList>
        <asp:Label AssociatedControlID="datDebut" runat="server" Text="<%$ Resources : Medianamik_ConfigurationManagement, From %>" />
        <telerik:RadDatePicker ID="datDebut" runat="server" AutoPostBack="true" OnSelectedDateChanged="RefreshStatusLabel" />
        <asp:Label AssociatedControlID="datFin" runat="server" Text="<%$ Resources : Medianamik_ConfigurationManagement, To %>" />
        <telerik:RadDatePicker ID="datFin" runat="server" AutoPostBack="true" OnSelectedDateChanged="RefreshStatusLabel" />
        <p style="margin-top:1em;">
            <asp:Label ID="lblstatus" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Button ID="btnPurge" runat="server" CssClass="Btn" OnClick="PurgeLogs" Text="<%$ Resources : Medianamik_ConfigurationManagement, PurgeLogs %>" />
            <input type="button" class="Btn" value="<%=Resources("Medianamik_Global", "Cancel") %>" onclick="Cancel_Clicked();" />
        </p>
    </fieldset>
</asp:Content>
